
#pragma once

#include <stdint.h>
#include "GameTimer.h"
namespace FlameEngine
{
	class FrameCounter
	{
	public:
		FrameCounter() :m_frameCount(0), m_fps(0)
		{
		}

		float GetFPS() { return m_fps; }

		uint32_t GetFrameCount() { return m_frameCount; }

		void IncreateFrame(const GameTimer& realTime)
		{
			m_frameCount++;
			m_fps = (float)(1.0 / realTime.GetElapsedTime());
		}
		
	private:
		uint32_t m_frameCount;
		float m_fps;
	};
}